﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowPost.ascx.cs" Inherits="Web_Pages_UserControls_ShowPost" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<style type="text/css">
    .style1
    {
        width: 248px;
    }
    .style2
    {
        width: 101px;
    }
</style>
<table>
    <tr>
        <td>
            <h3>Danh sách bài mới nhất</h3>
        </td>
    </tr>
    <tr>
        <td>
            <asp:DataList ID="DataList1" runat="server">
    <ItemTemplate>
        <table class="style1" 
    style=" width: 600px">
            <tr>
                <td valign="top"" class="style2" rowspan="3">
                    <a href="../WebContents/Profiles.aspx?Username=<%#Eval("Username") %>" >

                    <asp:Image ID="Image1" runat="server" Height="100px" 
                        ImageUrl='<%# Eval("Avatar","../../Images/{0}") %>' Width="100px" />
                   </a>
                    <br />
                    <br />
                </td>
                <td class="style4">
                    <a href="../WebContents/Profiles.aspx?Username=<%#Eval("Username") %>" >
                        <asp:Label ID="lblUsername" runat="server" 
                        Text='<%# Eval("Username") %>'></asp:Label>
                    </a>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    <asp:Label ID="lblContents" runat="server" Text='<%# Eval("Contents") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    &nbsp;</td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
        </td>
    </tr>
</table>



<cc1:CollectionPager ID="CollectionPager1" runat="server" 
     BackText="« Trước" FirstText="-- Đầu" LabelText="Trang:"
      LastText="Cuối" NextText="Sau »" 
    ResultsFormat="Kết quả {0}-{1} (của {2}) " ShowFirstLast="True" 
    SliderSize="5" PagingMode="QueryString" IgnoreQueryString="False">
      </cc1:CollectionPager>